import request from '@/utils/request'

export function getQueryApiRanking(data) {
  return request({
    url: `/api/statistics/queryApiRanking`,
    method: 'post',
    data: data
  })
}

// 新闻资讯返回信息
export function getWebViewCount(params) {
  return request({
    url: `/api/statistics/webViewCount`,
    method: 'get',
    params
  })
}

export function getQueryLineGraph(data) {
  return request({
    url: `/api/statistics/queryLineGraph`,
    method: 'post',
    data: data
  })
}

export function getNewsCatalog(params) {
  return request({
    url: `api/statistics/newsCatalog`,
    method: 'get',
    params
  })
}

export function getHostessCatalog(params) {
  return request({
    url: `api/statistics/hostessCatalog`,
    method: 'get',
    params
  })
}
